/**
 * Created by shanyun.gu on 2017/3/20.
 */
define(['angular', "tpl/base/route/homeRoute"], function (angular, homeRoute) {
    var routes = {
        defaultRoute: "/index/home",
        routes: {
            "index.login": {
                url: "/home",
                templateUrl: "tpl/base/web/home.html",
                dependencies: ["tpl/base/services/home.js"],
                allowAnonymous: true
            }
        }
    };
    if (homeRoute) {
        angular.forEach(homeRoute.routes, function (route, path) {
            routes.routes[path] = route
        })
    }

    return routes;
});